package com.itany.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author：汤小洋
 * Date：2023-01-04 14:51
 * Description：<描述>
 */
@RefreshScope
@RestController
public class ConfigController {

    @Value("${spring.datasource.url}")
    private String url;

    @RequestMapping("/test")
    public String test(){
        return url;
    }

}
